package com.yc.mapper;

import com.yc.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

//    @Insert("insert into user(username,password) values(#{username),#{password}")
//    public String save1(@Param("username") String username,@Param("password") String password);
//    @Select("select * from user where username=#{username}")
//    public User findByUsername1(@Param("username") String username);



    public int save(String username,String password);

    public User findByUsername(String username);

}
